// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 根据文件路径批量删除文件 DELETE /api/utils/file/deleteByFilePaths */
export async function deleteByFilePathsUsingDELETE(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteByFilePathsUsingDELETEParams,
  options?: { [key: string]: any },
) {
  return request<Record<string, any>>('/api/utils/file/deleteByFilePaths', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取登陆用户文件存储信息 GET /api/utils/file/getInfo */
export async function getLoginUserFileInfoUsingGET(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/utils/file/getInfo', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 根据文件路径修改文件名 GET /api/utils/file/renameByFilePath */
export async function renameByFilePathUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.renameByFilePathUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<Record<string, any>>('/api/utils/file/renameByFilePath', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
